/**
 * 14/02/2014
 * 
 * StateBO
 */
package org.cuatrovientos.erp.business;

import java.util.List;

import org.cuatrovientos.erp.dao.StateDAOInterface;
import org.cuatrovientos.erp.model.State;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Holds all the business logic for State related management
 * @author Javier Tejedor
 */
public class StateBO implements StateBOInterface {

	@Autowired
	private StateDAOInterface stateDAO;

	@Override
	public State selectById(int id) {
		return stateDAO.selectById(id);
	}

	@Override
	public List<State> selectAll() {
		return stateDAO.selectAll();
	}

	@Override
	public List<State> search(String description) {
		return stateDAO.search(description);
	}

	@Override
	public void deleteById(int id) {
		stateDAO.deleteById(id);
	}

	@Override
	public void insert(State state) {
		stateDAO.insert(state);
	}

	@Override
	public void update(State state) {
		stateDAO.update(state);
	}
	
}
